package com.jack.lib.ui.adapter

import android.app.Activity
import android.view.View
import android.view.ViewGroup
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.util.getItemView

/**
 * 作者: jack(黄冲)
 * 邮箱: 907755845@qq.com
 * create on 2018/12/24 13:17
 */
abstract class JRAdapter<T>(private val layoutResId: Int, data: MutableList<T>? = null) : BaseQuickAdapter<T, JViewHolder>(layoutResId, data) {

    override fun onCreateDefViewHolder(parent: ViewGroup, viewType: Int): JViewHolder {
        return JViewHolder(parent.getItemView(layoutResId))
    }
}